﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DecoratorPattern.DemoTwo
{
    public class SortDecorator : Decorator
    {
        public SortDecorator(SchoolReport sr) : base(sr)
        {
        }

        private string reportSort()
        {
            return " sort 38 " + Environment.NewLine;
        }

        public override string report()
        {
            return base.report() + this.reportSort();
        }
    }
}
